package com.koron.device.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.koron.bean.base.BaseBean;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author qingfeng
 * @description: 设备异动
 * @date 2021/7/14 9:44
 */
@Data
@ApiModel(value = "设备异动", description = "设备异动")
public class EquipmentChange extends BaseBean {

    @ApiModelProperty(value = "唯一id")
    private String id;

    @ApiModelProperty(value = "异动单编号")
    private String code;

    @ApiModelProperty("标题")
    private String name;

    @ApiModelProperty("异动的设备管理单位id")
    private String equipDeptId;

    @ApiModelProperty("异动的设备管理单位名称")
    private String equipDeptName;

    @ApiModelProperty(value = "异动原因")
    private String reason;

    @ApiModelProperty(value = "异动内容")
    private String content;

    @ApiModelProperty(value = "异动单状态")
    private String status;

    @ApiModelProperty(value = "创建人账号")
    private String createBy;

    @ApiModelProperty(value = "创建人姓名")
    private String createByName;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新人账号")
    private String updateBy;

    @ApiModelProperty(value = "更新人姓名")
    private String updateByName;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
}
